package com.timeset.user.mapper;

import com.timeset.activity.entity.Orgnaization;
import com.timeset.activity.entity.Student;
import com.timeset.user.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface UserMapper {
    //增加组织
    public int addOrganization(Orgnaization orgnaization);
    //增加个人用户
    public int addStudent(Student student);
    //根据id查找信息
    public Orgnaization findOrganizationById(int id);
    public Student findStudentById(int id);
    //登录
    public User findByPhoneAndPassword(@Param("phone")String phone,@Param("password")String password);

    //修改组织名字
    public int updateOrgNameById(int id,String name);

    //修改组织简介
    public int updateOrgInformationById(int id,String recommend);

    //修改组织联系方式
    public int updateOrgConnectById(int id,String connect);
    //修改组织认证资料
    public int updateOrgIdentityContentById(int id,String identityContent);

    //修改组织认证状态
    public int updateOrgIdentityById(int id,int status);

    //修改学生姓名
    public int updateStuNameById(int id,String name);
    //修改学生昵称
    public int updateStuNickNameById(int id,String nickname);
   //修改学生学号
    public int updateStuNumberById(int id,String number);
    //修改学生学院
    public int updateStuCollegeById(int id,String college);

    //修改学生个人介绍
    public int updateStuRecommend(int id,String commend);



    //修改学生认证状态
    public int updateStuIdentityById(int id,int status);


}
